package net.hn.hnms.biz.blueprint.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author wangjingrui
 * @date 2022/9/17 12:47
 */
@Data
public class FileSaveReq {

    @ApiModelProperty(value = "文件信息Id")
    private String fileInfoId;

    @ApiModelProperty(value = "文件分类名称")
    @NotBlank(message = "文件分类名称不能为空")
    private String fileTypeName;

    @ApiModelProperty(value = "版本号")
    @NotBlank(message = "目录Id不能为空")
    private String versionCode;

    @ApiModelProperty(value = "目录Id")
    @NotBlank(message = "目录Id不能为空")
    private String catalogId;

    @ApiModelProperty(value = "文件名")
    @NotBlank(message = "文件名不能为空")
    private String fileName;

    @ApiModelProperty(value = "文件ossId")
    @NotNull(message = "文件ossId不能为空")
    private Long ossId;

    @ApiModelProperty(value = "文件大小")
    @NotNull(message = "文件大小不能为空")
    private Integer fileSize;

    @ApiModelProperty(value = "文件路径")
    @NotBlank(message = "文件路径不能为空")
    private String filePath;


    @ApiModelProperty(value = "煤矿编码")
    private String mineCode;
}
